<template>
  <div :class="styles.emptyWrap">
    <van-empty :image="img" :class="styles.empty" :description="title"> </van-empty>
  </div>
</template>

<script>
import { emptyListIcon } from '@/const/images';
import styles from './index.module.less';

export default {
  props: {
    img: {
      type: String,
      default: emptyListIcon,
    },
    title: {
      type: String,
      default: '暂无数据',
    },
  },

  setup() {
    return {
      styles,
    };
  },
};
</script>
